﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EFMagic.Schema
{
    [Serializable]
    public class EFMTable
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string DBName { get; set; }
        public IDictionary<Guid,EFMColumn> Columns { get; set; }
        public IDictionary<string,EFMConstraint> Constraints { get; set; }
        public IDictionary<string, EFMIndex> Indexes { get; set; }
        public EFMTable()
        {
            Columns = new Dictionary<Guid, EFMColumn>();
            Constraints = new Dictionary<string, EFMConstraint>();
            Indexes = new Dictionary<string, EFMIndex>();
        }
    }
}
